package com.kitchen.npc
{
	import com.kitchen.AbstractNpc;
	
	import flash.events.Event;

	public class HatBoy extends AbstractNpc
	{
		public function HatBoy()
		{
			super();
			this.h = 200;
			this.w = 150;
			this.id = 1;
		}
		
		//前奏
		override public function goAhead():void{
			this.step = 1;
			this.wait = 0;
			this.gotoAndPlay(62);
			this.dispatchEvent(new Event(AbstractNpc.NPC_AHEAD));
		}
		
		//回走
		override public function goBack():void{
			this.step = 6;
			this.wait = 0;
			this.gotoAndPlay(47);
			this.dispatchEvent(new Event(AbstractNpc.NPC_BACK));
		}
		
		//生气
		override public function angry():void{
			this.step = 4;
			this.wait = 0;
			this.gotoAndPlay(32);
			this.dispatchEvent(new Event(AbstractNpc.NPC_ANGRY));
		}
		
		//站立柜台
		override public function stand():void{
			this.step = 2;
			this.wait = 0;
			this.gotoAndPlay(2);
			this.dispatchEvent(new Event(AbstractNpc.NPC_STAND));
		}
		
		//笑嘻嘻
		override public function laugh():void{
			this.step = 5;
			this.wait = 0;
			this.gotoAndPlay(17);
			this.dispatchEvent(new Event(AbstractNpc.NPC_LAUGH));
		}
		
	}
}